package com.ccmusic.service.impl;

import java.util.List;

import com.ccmusic.dao.ListMatchingDao;
import com.ccmusic.dao.impl.ListMatchingDaoImpl;
import com.ccmusic.entity.ListMatching;
import com.ccmusic.entity.MusicType;
import com.ccmusic.service.ListMatchingService;
import com.ccmusic.util.DatatablesBean;

public class ListMatchingServiceImpl implements ListMatchingService {
	private ListMatchingDao ld = new ListMatchingDaoImpl();

	@Override
	public boolean addMatching(String lid, String mid) {
		return ld.addMatching(lid, mid);
	}

	@Override
	public boolean delMatching(ListMatching lm) {
		return ld.delMatching(lm);
	}

	@Override
	public DatatablesBean<ListMatching> showMacthing(String lid) {
		DatatablesBean<ListMatching> dtb = new DatatablesBean<>(ld.showMacthing(lid));
		return dtb;
	}

	@Override
	public DatatablesBean<MusicType> getMusicsFromList(String uid, String lid) {
		DatatablesBean<MusicType> dtb = new DatatablesBean<>(ld.getMusicsFromList(uid, lid));
		return dtb;
	}

}
